<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<header th:fragment="header" id="fragment-id">
    <style>
        .down-from {
            position: relative;
            margin: 28px auto;
            width: 1400px;
            color: orangered;
            line-height: 50px;
        }

        .down-from span {
            display: inline-block;
            float: left;
            width: 100px;
            height: 50px;
            font-weight: bold;
            text-align: center;
            background-color: #fff;
        }

        .down-from input {
            display: block;
            float: left;
            border: none;
            width: 220px;
            height: 50px;
            outline: none;
            text-indent: 10px;
            font-size: 16px;
            margin-right: 20px;
        }

        .down-from .btn {
            border-radius: 20px;
            border: 2px #FFC107 solid;
            cursor: pointer;
            background-image: linear-gradient(#fff, rgb(253, 240, 183), #fae3a0);
            color: rgb(237 54 40);
            font-size: 28px;
            font-weight: bolder;
            letter-spacing: 7px;
            width: 220px;
        }
    </style>
    <div class="bottom-user">
        <div class="dbzsl">
            <!-- <h1 style="color: #e9221e; text-align: center; font-size: 38px;  height: 50px;">立即咨询
              2023年春季报名火热进行中
            </h1> -->
            <form class="down-from">
                <span>您的姓名</span><input type="text" required name="name" id="db_name" placeholder="请输入您的姓名">
                <span>电话号码</span><input type="tel" required name="tel" id="db_mobile" placeholder="凭此号码报销路费">
                <input type="button" value="立即预定" class="btn" onclick="submitForm()" id="dbzslsub"
                       style="line-height: 30px">


                <input type="button" value="咨询专业" class="btn" onclick="closeChat()" style="line-height: 30px">
                <input type="button" value="咨询学费" class="btn" onclick="closeChat()" style="line-height: 30px">
            </form>
            <script>
                function submitForm() {
                    let name = $("#db_name").val()//$("#db_name") jquery 对象
                    //let name= document.getElementById("db_name").value  相同作用，JavaScript 语法 dom对象document.getElementById("db_name")
                    //document.getElementById("dbzslsub").innerText 获取文本内容
                    //document.getElementById("dbzslsub").innerHTML 获取标签文本内容
                    //$("#dbzslsub").html()
                    let tel = $("#db_mobile").val()
                    if (name.length <= 1) {
                        alert("请输入正确的名字")
                        return
                    }
                    if (tel.length !== 11) {
                        alert("请输入正确的电话")
                        return
                    }
                    //向后台发请求
                    $.post("user", {name, tel}, function (resp) {
                        if (resp.userId) {
                            alert("预定成功")

                        }
                    })


                }
            </script>
        </div>
    </div>
    <!-- top header -->
    <div class="top-head-w3ls py-2 bg-dark">
        <div class="container">
            <div class="row">
                <h1 class="text-capitalize text-white col-7">
                    <i class="fas fa-book text-dark bg-white p-2 rounded-circle mr-3"></i>欢迎来到贵州省贵阳市商贸学校
                    <p id="userId" th:text="${#request.getSession().getId()}" style="display: none"></p>

                </h1>
                <!-- social icons -->
                <div class="social-icons text-right col-5">
                    <ul class="list-unstyled">
                        <li>
                            <a href="#" class="fab fa-facebook-f icon-border facebook rounded-circle"> </a>
                        </li>
                        <li class="mx-2">
                            <a href="#" class="fab fa-twitter icon-border twitter rounded-circle"> </a>
                        </li>
                        <li>
                            <a href="#" class="fab fa-google-plus-g icon-border googleplus rounded-circle"> </a>
                        </li>
                        <li class="ml-2">
                            <a href="#" class="fas fa-rss icon-border rss rounded-circle"> </a>
                        </li>
                    </ul>
                </div>
                <!-- //social icons -->
            </div>
        </div>
    </div>
    <!-- //top header -->
    <!-- middle header -->
    <div class="middle-w3ls-nav py-2">
        <div class="container">
            <div class="row">
                <a class="logo font-weight-bold col-lg-4 text-lg-left text-center" href="index.html">商贸学校</a>
                <div class="col-lg-8 right-info-agiles mt-lg-0 mt-sm-3 mt-1">
                    <div class="row">
                        <div class="col-sm-4 nav-middle">
                            <i class="far fa-envelope-open text-center mr-md-4 mr-sm-2 mr-4"></i>
                            <div class="agile-addresmk">
                                <p>
                                    <span class="font-weight-bold text-dark">邮箱</span>
                                    <a href="mailto:mail@example.com">info@example.com</a>
                                </p>
                            </div>
                        </div>
                        <div class="col-sm-4 col-6 nav-middle mt-sm-0 mt-2">
                            <i class="fas fa-phone-volume text-center mr-md-4 mr-sm-2 mr-4"></i>
                            <div class="agile-addresmk">
                                <p>
                                    <span class="font-weight-bold text-dark">电话</span>
                                    13638509343
                                </p>
                            </div>
                        </div>
                        <div class="col-sm-4 col-6 top-login-butt text-right mt-sm-2">
                            <a href="login.html" class="button-head-mow3 text-white">登录</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- //middle header -->
    <!--    弹窗-->
    <div class="alert-image com"
         style="position: fixed;width: 340px;z-index: 10000;left: calc(50vw - 200px);display: none;position: fixed">
        <div class="box-11">
            <div style="border:1px solid lightcoral;width:25px; height:25px;position: absolute;font-size: 15px;color: lightcoral;
            border-radius: 20px;text-align:center; right:1px;line-height: 24px;cursor: pointer" onclick="closeAlert()">X
            </div>
            <img src="https://www.gysxinhua.com/static/pc/images/tkbg.png" width="100%">
            <h3 style="position: absolute;top: 38%; right: 115px;color: rgba(255,94,49)">恭喜获得</h3>
            <h5 style="position: absolute;top: 47%; right:85px;color: rgba(255,94,49)">秋季免试特招班名额</h5>
            <img src="	https://www.gysxinhua.com/static/pc/images/tkje.jpg" width="225px"
                 style="top: 55%; right: 65px; position: absolute">
            <a style="position: absolute;top: 92%; right:120px;color: #e9ecef;cursor: pointer" onclick="showBox2()">点击立即领取</a>

        </div>
        <div class="box-22" style="display: none">
            <div style="border:1px solid lightcoral;width:25px; height:25px;position: absolute;font-size: 15px;color: lightcoral;
            border-radius: 20px;text-align:center; right:1px;line-height: 24px;cursor: pointer" onclick="closeAlert()">X
            </div>
            <img src="https://www.gysxinhua.com/static/pc/images/tkbg.png" width="100%">
            <h3 style="position: absolute;top: 40%; right: 105px;color: rgba(255,94,49)">请填写信息</h3>

            <form>
                <div class="fbox"
                     style="position: absolute;top: 55%; right: 60px;color: rgba(255,94,49);border-bottom: 1px solid">
                    姓名：<input type="text" name="name" placeholder="请输入你的姓名" id="tk_name"
                              style="background-color:rgba(254,242,230);border: none">
                </div>

                <div class="fbox"
                     style="position: absolute;top: 65%; right: 60px;color: rgba(255,94,49);border-bottom: 1px solid">
                    电话：<input type="text" name="tel" placeholder="请输入你的手机号" id="tk_mobile"
                              style="background-color:rgba(254,242,230);border: none">
                </div>
            </form>
            <a style="position: absolute;top: 92%; right:120px;color: #e9ecef;cursor: pointer"
               onclick="WriteInformation()">点击立即领取</a>
        </div>

    </div>
    <script>
        function WriteInformation() {
            var name = $("#tk_name").val()
            var tel = $("#tk_mobile").val()
            if (name.length <= 1) {
                alert("请输入2-4字的名字")
                return
            }
            if (tel.length !== 11) {
                alert("请输入正确的电话格式")
                return
            }
            $.post("user", {name, tel}, function (resp) {
                if (resp.userId) {
                    alert("领取成功")
                    closeAlert()
                }
            })
        }

        function showBox2() {
            $(".box-11").hide()
            $(".box-22").show()
        }

        function closeAlert() {
            $(".alert-image").hide()

        }

        setTimeout(() => {
            $(".alert-image").show()
        }, 10000)
    </script>
    <!--    聊天窗口-->
    <link rel="stylesheet" th:href="@{/css/force.css}">

    <div id="jesong_chat_layout" class="jesong_phone_layout jesong_phone_layout_sc_1 jesong-container-mini"
         style="display: block; width: 100px; height: 40px;max-width: 100%">
        <div id="jesong_mask"
             style="width:620px;height:500px;position: absolute; top: 0px; right: 0px; z-index: 100; opacity: 0.5; filter:alpha(opacity=50); background: rgb(0, 0, 0);background:#000000;border-radius:14px 14px 0 0;display:none;"></div>
        <div class="jesong-container-mini-inner">
            <div class="jesong-container-mini-main">
                <div id="jesong-mini-main-top" class="jesong-mini-main-top" style="background-color:#db6161b8;">
                    <div class="jesong-custom">
                        <div id="jesong_chat_close" class="jesong_sprite" onclick="closeChat()"></div>

                    </div>

                    <div class="jesong-brand">
                        <div class="jesongOpacity"></div>
                        <img src="https://img2.baidu.com/it/u=1209799595,1511147757&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=750"
                             alt="">
                    </div>
                    <div class="jesong-abstract">
                        <h2 class="jesong-abstract-h2">学校招生代码:3652001383</h2>
                    </div>

                </div>
                <div id="jesong_chat_body" style="height: 440px;">
                    <div class="jesong_chat_left jesong_fl" style="height: 440px; width:420px">
                        <div id="jesong_chat_record" style="height: 300px" class="jesong-mini-main-middle test-1">


                            <div>
                                <div class="jesong-service-bubble" id="506113162743983104">
                                    <div class="jesong-service-bubble-icon" style="display:block"><img
                                            src="https://img95.699pic.com/element/40051/9850.png_860.png"
                                            alt=""></div>
                                    <div class="jesong-service-bubble-con">
                                        <div class="jesong-service-session"><span
                                                class="jesong-service-nickName">招生办马老师</span><span>14:33</span>
                                        </div>
                                        <div class="jesong-service-session-con jesong-user-msg"
                                             style="font-size: 14px; font-family: Microsoft YaHei, H-Helvetica, _H-HelveticaNeue, Roboto, STHeiti-Light, STHeiti-Medium, Noto Sans SC, Microsoft YaHei !important; color: rgb(51, 51, 51) !important;">
                                            这样吧，你微信是多少?我加下您。把我们的学习资料及学费信息发给你看看。
                                        </div>
                                        <div class="jesong-service-phone">
                                            <div style="display:inline-block;"
                                                 id="chatTool506113162743983104"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                        <div id="jesong_opinion_layout" style="top: 47%; display: none;"
                             class="jesong-opinion-layout jesong-pop-window">
                            <div id="jesong_opinion_reason_cancel" class="jesong_sprite jesong-opinion-close"></div>
                            <div id="jesong_opinion_header" style="background-color:#0A7DDE;"
                                 class="jesong_opinion_header"><span>服务评价</span></div>
                            <div id="jesong_opinion_score" class="jesong-score">
                                <div class="jesong_opinion_hert"><span class="jesong_sprite"></span></div>
                                <div class="jesong-desp">请对我们的服务进行评价</div>
                                <div class="jesong-star-box"
                                     style="width:100%;text-align:center;margin-top:20px;height:40px;"><span
                                        class="jesong_sprite jesong-star jesong-star-1"></span><span
                                        class="jesong_sprite jesong-star jesong-star-1"></span><span
                                        class="jesong_sprite jesong-star jesong-star-1"></span><span
                                        class="jesong_sprite jesong-star jesong-star-1"></span><span
                                        class="jesong_sprite jesong-star jesong-star-1"></span></div>
                                <div class="jesong-opinion-segmentation"></div>
                                <div id="jesong_opinion_result" class="jesong-result"><span id="jesong-op-box"
                                                                                            style="display:block;">非常满意</span>
                                </div>
                            </div>
                            <div id="jesong_opinion_reason" class="jesong-reason"><textarea rows="5"
                                                                                            id="jesong_opinion_reason_text"
                                                                                            placeholder="您认为我们还有哪些不足，请留下您的宝贵意见，谢谢！"
                                                                                            class=" jesong_text_blur"></textarea>
                            </div>
                            <div style="width:100%;text-align:center;position: absolute;bottom: 40px">
                                <button id="jesong_opinion_reason_commit" class="jesong-commit"
                                        style="background-color:#0A7DDE;border-color:#0A7DDE;">提交评价
                                </button>
                            </div>
                            <div class="jesong-operation-footer" style="position:absolute"><span
                                    class="jesong-help-block"></span></div>
                        </div>
                        <div id="jesong_detainment_layout"
                             class="jesong-detainment-layout jesong-pop-window">
                            <div id="jesong_detainment_reason_cancel"
                                 class="jesong-detainment-close jesong_sprite"></div>
                            <div class="jesong-detainment-header-title">留联信息
                            </div>
                            <div class="jesong-detainment-content" style="height:400px;">
                                <div class="jesong_detainment_header">
                                    <div id="jesong_detainment_header_wechat"
                                         class="jesong_detainment_header_wechat">
                                        <div id="jesong_detainment_header_wechat_popUp"><img
                                                id="jesong_detainment_header_wechat_popUp_img" src="" alt=""></div>
                                        <img id="jesong_detainment_header_wechat_img" src="" alt="">
                                        <p>添加客服二维码</p></div>
                                    <div id="jesong_detainment_header_default"
                                         class="jesong_detainment_header_default">
                                        <div class="jesong_detainment_header_default_img"></div>
                                    </div>
                                    <p class="jesong_detainment_header_title" id="jesong_detainment_header_title">
                                        请您留下联系方式，方便为您提供服务支持</p>
                                    <div class="jesong_detainment_interval"></div>
                                </div>
                                <div id="jesong_detainment_main" class="jesong_detainment_main"></div>
                            </div>
                            <div class="jesong_detainment_footer">
                                <button id="jesong_detainment_reason_commit" class="jesong-commit"
                                        style="background-color:#0A7DDE;border-color:#0A7DDE;">提交
                                </button>
                            </div>
                        </div>
                        <div id="jesong_file_layout" class="jesong-file-layout jesong-pop-window"
                             style="width: 410px; display: none;">
                            <a id="jesong_file_send" class="jesong_fr jesong_file_send"
                               href="javascript:void(0)">发送</a>
                            <div class="jesong_fl">
                                <span class="jesong_sprite jesong_fl"></span>
                                <p id="jesong_file_name" class="jesong_fl"></p>
                                <a id="jesong_file_del" class="jesong_fl jesong_file_del"
                                   href="javascript:void(0)">删除</a>
                            </div>
                        </div>
                        <div id="jesongChat_quick_layout" class="jesongChat-quick-layout clearfix">
                            <div id="jesongChat_quick_content" class="jesongChat-quick-content"></div>
                            <div id="jesongChat_quick_close" class="jesongChat-quick-close"></div>
                        </div>
                        <div id="jesong-mini-main-footer-pc" class="jesong-mini-main-footer" style="height:139px">
                            <div id="freecall_info" class="freecall-info" style="display: none;">

                                <p class="info-title" style="background:#0A7DDE"> 本次通话全程免费，请您放心拨打！</p>

                                <div class="jesong_clear">

                                    <span class="jesong_sprite infoIcon jesong_fl"></span>
                                    <p class="info jesong_fl"> 手机直接拨号<br>
                                        <span> 请输入您的号码，我们将立即给您回电</span>
                                    </p>

                                </div>

                                <div class="jesong_clear">

                                    <span class="jesong_sprite infoIcon jesong_fl"></span>
                                    <p class="info jesong_fl"> 拨打座机前请加区号
                                        <br>
                                        <span> 如"：010-78654536</span>
                                    </p>

                                </div>

                            </div>
                            <div class="jesong-operation-header">
                                <div id="free_tel" title=" 拔打电话" style="display: block;">
                                    <input id="pc_phone_num" type="text">

                                    <span id="pc_phone" style="background-color:#0A7DDE"
                                          class="phone-icon jesong_sprite"></span>
                                </div>
                                <div id="jesong_tools_emoticons" class="jesong_tools_div jesong_sprite" title=" 表情"
                                     style="display: none;"></div>
                                <div id="jesong_tools_file" class="jesong_tools_div jesong_sprite" title=" 传送文件"
                                     style="display: none;">
                                    <input id="jesong_file" name="file" type="file">
                                </div>
                                <div id="jesong_tools_screen" class="jesong_tools_div jesong_sprite" title=" 截图"
                                     style="display: none;"></div>
                                <div id="jesong_tools_opinion" class="jesong_tools_div jesong_sprite" title=" 评价客服"
                                     style="display: none;"></div>
                                <div id="jesong_tools_sound" class="jesong_tools_div jesong_sprite" title=" 静音"
                                     style="display: none;"></div>
                                <div id="jesong_tools_quiet" class="jesong_tools_div jesong_sprite" title=" 静音"
                                     style="display: none;"></div>
                                <div id="jesong_tools_wechat"
                                     class="jesong_tools_wechat jesong_tools_div jesong_sprite" title=" 微信">
                                    <div id="tools_wechat_qrcode" class="jesong-tools-wechat-qrcode">
                                        <div class="twq-content">
                                            <div class="twq-content-img">
                                                <img src="https://upms-prod-oss.oss-cn-beijing.aliyuncs.com/13166/2023/7/28/feb18519c12c4b27a753d89fa4704392.jpg"
                                                     id="toolsWeChatQrCode" alt="二维码">
                                            </div>
                                            <div class="twq-content-close">
                                                <button id="twq_content_close_btn" class="twq-content-close-btn">
                                                    点击关闭
                                                </button>
                                            </div>
                                        </div>
                                        <div class="twq-corner">
                                        </div>
                                    </div>
                                </div>
                                <div id="jesong_emoticon_layout" class="jesong-emoticon-layout jesong-pop-window"
                                     style="display: none;">
                                    <div id="jesong_emoticons" class="jesong-emoticons"></div>
                                </div>
                            </div>
                            <div class="jesong-operation-main" style="height:101px">
                                <div class="jesong-main-import">
                                    <div id="jesong_message"
                                         class="jesong_message_content jesong_text jesong_text_blur"
                                         contenteditable="true" placeholder="请输入您要咨询的内容..."></div>
                                </div>
                                <button id="jesong_chat_send_btn" class="jesong-btn-info"
                                        style="background-color: #0A7DDE;border-color: #0A7DDE"><span
                                        class="jesong_sprite" onclick="sendMessage()"> 发送</span></button>
                                <div class="jesong-operation-footer" style="position:absolute">
                                    <span class="jesong-help-block"> </span>
                                </div>
                            </div>
                        </div>
                        <div id="jesong_sound" style="display:none;">
                            <audio id="jesong_audio"
                                   src="https://scripts.easyliao.com/group-prd1/wav/sound.wav"></audio>
                        </div>
                        <div id="jesong_back_layout" class="jesong-back-layout jesong-pop-window"
                             style="display: none;">
                            <div id="jesong_back_reason_cancel" class="jesong-back-close"></div>
                            <div class="jesong-desp">确定要关闭窗口吗？</div>
                            <div style="width:80%;margin:0 auto;overflow:hidden; padding-top:20px">
                                <button id="jesong_back2_reason_cancel" class="jesong-commit"
                                        style="float:left; background-color:#0A7DDE;border-color:#0A7DDE;">取消
                                </button>
                                <button id="jesong_back_reason_commit" class="jesong-commit"
                                        style="background-color:#ffffff; color:#0A7DDE; float:right; border-color:#0A7DDE;">
                                    确定
                                </button>
                            </div>
                        </div>
                        <div id="jesong_paste_layout" class="jesong-paste-layout jesong-pop-window">
                            <div id="jesong_paste_reason_cancel" class="jesong-paste-close"></div>
                            <div class="jesong-desp">确定要发送该截图吗？</div>
                            <div style="width:80%;margin:0 auto;overflow:hidden; padding-top:20px">
                                <button id="jesong_paste2_reason_cancel" class="jesong-commit"
                                        style="float:left; background-color:#0A7DDE;border-color:#0A7DDE;"> 取消
                                </button>
                                <button id="jesong_paste_reason_commit" class="jesong-commit"
                                        style="background-color:#ffffff; color:#0A7DDE; float:right; border-color:#0A7DDE;">
                                    确定
                                </button>
                            </div>
                        </div>
                    </div>

                    <div class="jesong_chat_right jesong_clear jesong_fl">
                        <div id="jesong_chat_advertising" style="display: block;">
                            <div class="easyliao-nav">
                                <div id="jesong_chat_customer" class="nav-tabs easyliao-active"
                                     style="display: block; width: 100%;">客服信息
                                </div>
                                <div id="jesong_chat_aboutUS" class="nav-tabs" style="display: none;">关于我们</div>
                            </div>
                            <div class="jesong-tab-content" style="height:259px">
                                <div class="easyliao-tabs easyliao-show" id="jesong_chat_advertising-info">
                                    <p class="jesong-service-icon" id="jesong_chat_custHeadBox"><img id="custHead"
                                                                                                     src="https://img95.699pic.com/element/40051/9850.png_860.png"
                                                                                                     alt=""></p>
                                    <div class="jesong_chat_custName">
                                        <div id="jesong_chat_custName_title" style="display: none;">
                                            <span id="jesong_chat_custName_title_text">招生办马老师</span>
                                            <div class="jesong_chat_custName_title_point"></div>
                                        </div>
                                        <p id="jesong_chat_custName_content" style="display: block;"
                                           class="jesong-service-number">
                                            客服：<span id="jesong_chat_custName">招生办马老师</span>
                                        </p>
                                    </div>
                                    <div style="position:relative">
                                        <div id="jesong_chat_custDept_title">
                                            <span id="jesong_chat_custDept_title_text">客服机器人</span>
                                            <div class="jesong_chat_custName_title_point"></div>
                                        </div>
                                        <p id="jesong_chat_custDept_content" style="display:none">

                                            <span class="icon-1">部门：</span><span
                                                id="jesong_chat_custDept">客服机器人</span></p>
                                    </div>
                                    <div style="position:relative">
                                        <div id="jesong_chat_custTel_title" style="display: none;">
                                            <span id="jesong_chat_custTel_title_text">0851-85778999</span>
                                            <div class="jesong_chat_custName_title_point"></div>
                                        </div>
                                        <p id="jesong_chat_custTel_content" style="display: block;">
                                            <span class="icon-11">电话：</span><span
                                                id="jesong_chat_custTel">0851-85778999</span>
                                        </p>
                                    </div>
                                </div>
                                <div class="easyliao-tabs" id="jesong-about-us"></div>
                            </div>
                            <div id="jesong_chat_rightAdv" style="display: block;"><img
                                    src="https://imgpp.ztupic.com/bup/so/20210604/639088c719498d1e736ee2cefb18a53d-1.jpg?x-oss-process=image/crop,w_1024,h_1542/resize,h_812/quality,q_85/sharpen,100"
                                    alt=""></div>
                        </div>
                    </div>


                </div>
            </div>
            <div>
                <div style="display:none;">
                    <iframe id="jesong_frame" src="about:blank"></iframe>
                </div>
                <div id="jesongChat_screenshot_shade" class="jesongChat-screenshot-shade">
                    <div id="jesongChat_screenshot" class="jesongChat-screenshot">
                        <div class="jesongChat-screenshot-header">
                            <div class="jesongChat-screenshot-header-text">发送图片</div>
                            <div id="jesongChat_screenshot_header_close"
                                 class="jesongChat-screenshot-header-close"></div>
                        </div>
                        <div class="jesongChat-screenshot-main">
                            <div class="jesongChat-screenshot-main-img">
                                <img src="" id="jesongChat-screenshot-main-img" alt="">
                            </div>
                        </div>
                        <div class="jesongChat-screenshot-footer">
                            <div id="jesongChat_screenshot_footer_comfirm"
                                 class="jesongChat-screenshot-footer-comfirm">确定
                            </div>
                            <div id="jesongChat_screenshot_footer_close" class="jesongChat-screenshot-footer-close">
                                取消
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        <!--咨询窗口开关-->
        function closeChat() {

            if ($("#jesong_chat_layout").css("height") === "40px") {
                $("#jesong_chat_layout").css("height", "500px").css("width", "620px")
            } else {
                $("#jesong_chat_layout").css("height", "40px").css("width", "100px")
            }
        }

        setTimeout(function () {
            if ($("#jesong_chat_layout").css("height") === "40px") {
                $("#jesong_chat_layout").css("height", "500px").css("width", "620px")
            }
        }, 15000);
        let userId = document.getElementById("userId").innerText;

        let webSocket = new WebSocket("ws://"+location.host+"/ws/" + userId);
        //收到信息后执行的方法
        webSocket.onmessage = function (message) {
            let data = JSON.parse(message.data)//把原来的字符串变json对象
            let me = `<div>
                                <div class="jesong-service-bubble" id="506113162743983104">
                                    <div class="jesong-service-bubble-icon" style="display:block"><img
                                            src="${data.avatar}"
                                            alt=""></div>
                                    <div class="jesong-service-bubble-con">
                                        <div class="jesong-service-session"><span
                                                class="jesong-service-nickName">${data.sender}</span><span>${data.time.substring(10,19)}</span>
                                        </div>
                                        <div class="jesong-service-session-con jesong-user-msg"
                                             style="font-size: 14px; font-family: Microsoft YaHei, H-Helvetica, _H-HelveticaNeue, Roboto, STHeiti-Light, STHeiti-Medium, Noto Sans SC, Microsoft YaHei !important; color: rgb(51, 51, 51) !important;">
                                            ${data.body}
                                        </div>
                                        <div class="jesong-service-phone">
                                            <div style="display:inline-block;"
                                                 id="chatTool506113162743983104"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>`
            $("#jesong_chat_record").append(me)
        }

        function sendMessage() {
            let m = $("#jesong_message").html()
            if (!m) {
                alert("请输入聊天内容")
                return
            }
            let msg = {
                body: m, sender: userId,
                avatar: "http://p2.ssl.qhimg.com/dm/72_72_100/t01153c5aa2c2a26d26.png",
                target: "马老师",
                type: "MESSAGE"
            };
            webSocket.send(JSON.stringify(msg))//用webSocket发信息  json对象转字符串
            $("#jesong_message").html("")
        }


    </script>


</header>
<div th:fragment="banner" id="banner" class="navigation-w3ls">

    <!-- navigation -->
    <nav class="navbar navbar-expand-lg navbar-light bg-light sticky-nav">
        <button class="navbar-toggler mx-auto" type="button" data-toggle="collapse"
                data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
                aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse text-center" id="navbarSupportedContent">
            <ul class="navbar-nav justify-content-center">
                <li class="nav-item" th:classappend="${#request.getRequestURI().endsWith('index')?'active':''}">
                    <a class="nav-link text-white" href="index">首页
                        <span class="sr-only">(current)</span>
                    </a>
                </li>
                <li class="nav-item" th:classappend="${#request.getRequestURI().endsWith('schoolInfo')?'active':''}">
                    <a class="nav-link text-white" href="schoolInfo">学校简介</a>
                </li>
                <li class="nav-item" th:classappend="${#request.getRequestURI().endsWith('course')?'active':''}">
                    <a class="nav-link text-white" href="course">专业课程</a>
                </li>
                <li class="nav-item" th:classappend="${#request.getRequestURI().endsWith('book')?'active':''}">
                    <a class="nav-link text-white" href="book">学历证书</a>
                </li>
                <li class="nav-item" th:classappend="${#request.getRequestURI().endsWith('job')?'active':''}">
                    <a class="nav-link text-white" href="job">就业服务</a>
                </li>
                <li class="nav-item" th:classappend="${#request.getRequestURI().endsWith('teacher')?'active':''}">
                    <a class="nav-link text-white" href="teacher">教师风采</a>
                </li>
                <li class="nav-item" th:classappend="${#request.getRequestURI().endsWith('homework')?'active':''}">
                    <a class="nav-link text-white" href="homework">学生作品</a>
                </li>
                <li class="nav-item" th:classappend="${#request.getRequestURI().endsWith('schoolImages')?'active':''}">
                    <a class="nav-link text-white" href="schoolImages">图说商贸学校</a>
                </li>
            </ul>
        </div>
    </nav>
</div>
<!-- //navigation -->

<footer th:fragment="footer" id="footer" style="background-color: #777">
    <div class="container py-4">
        <div class="row py-xl-5 py-sm-3">
            <div class="col-lg-6 map">
                <h2 class="contact-title text-capitalize text-white font-weight-light mb-sm-4 mb-3">我们
                    <span class="font-weight-bold">位置</span>
                </h2>
                <div style="overflow: hidden">

                    <iframe style="position:relative;top: -46px"
                            src="https://m.amap.com/navi/?dest=106.352058,26.606975&destName=贵州省贵阳市商贸学校&hideRouteIcon=1&key=88eca2ab1477772d268b77e38ea24beb"></iframe>
                </div>
                <div class="conta-posi-w3ls p-4 rounded">
                    <h5 class="text-white font-weight-bold mb-3">地址</h5>
                    <p>清镇市铝城大道南段</p>
                </div>
            </div>
            <div class="col-lg-4 contact-agileits-w3layouts mt-lg-0 mt-4">
                <h4 class="contact-title text-capitalize text-white font-weight-light mb-sm-4 mb-3">联系我们
                    <span class="font-weight-bold">电话</span>
                </h4>
                <p class="conta-para-style border-left pl-4">如果您对我们提供的服务有任何疑问,我们尽量在24小时内回复所有查询和评论
                </p>
                <!-- <div class="subscribe-w3ls my-xl-5 my-4">
                     <h6 class="text-white text-capitalize mb-4">subscribe our newsletter</h6>
                     <form action="#" method="post" class="subscribe_form">
                         <input class="form-control" type="email" name="email" placeholder="Enter your email..."
                                required="">
                         <button type="submit" class="btn btn-primary submit">Submit</button>
                     </form>
                 </div>-->
                <p class="para-agileits-w3layouts text-white">
                    <i class="fas fa-map-marker pr-3"></i>清镇市铝城大道南段</p>
                <p class="para-agileits-w3layouts text-white my-sm-3 my-2">
                    <i class="fas fa-phone pr-3"></i>13638509343</p>
                <p class="para-agileits-w3layouts">
                    <i class="far fa-envelope-open pr-2"></i>
                    <a href="mailto:mail@example.com" class=" text-white">info@example.com</a>
                </p>

            </div>
            <style>
                .xydh {
                    float: left;
                    width: 280px;
                    height: 215px;
                    text-align: center;
                    color: #fff;
                }

                .xydh h2 {
                    height: 45px;
                    line-height: 45px;
                    font-size: 24px;
                }

                .xydh p {
                    height: 35px;
                    line-height: 35px;
                }

                .xydh a {
                    display: block;
                    width: 168px;
                    height: 36px;
                    margin: 20px auto 10px;
                }
            </style>
            <div class="xydh col-lg-2">
                <h2>13638509343</h2>
                <p>咨询电话</p>
                <a onclick="closeChat()" target="_blank"><img
                        src="https://www.gysxinhua.com/static/pc/picture/foot_bm1.jpg"></a><a onclick="closeChat()"
                                                                                              target="_blank"><img
                    src="https://www.gysxinhua.com/static/pc/picture/foot_zx.jpg"></a>
            </div>
        </div>
    </div>


</footer>

</body>
</html>